package com.fbs.wowo.essay.service;

import com.fbs.wowo.essay.entity.*;
import com.fbs.wowo.essay.vo.EssayQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface EssayService {

    int insertSelective(Essay record);

    List<EssayListResponse> findRecommendList();

    Essay selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(Essay record);

    List<EssayListResponse> queryEssayList(EssayQuery essayQuery);

    EssayInfoResponse findEssayInfo(String essayId,String uId);

    EssayNumResponse findMyEssayNum(String userId);

    List<UserNameListResponse> confirmedUserList();

    UserHomeResponse findUserHomeByUserId(String loginUserId,String userId);

    OneselfHomeResponse oneselfHomeByUserId(String userId);

    int deleteByPrimaryKey(String essayId,String userId);

    List<EssayListResponse> findEssayByClassifyId(@Param("classifyId") String classifyId, @Param("type") int type);

}
